package com.fr.file;

import java.io.Serializable;

import jersey.repackaged.com.google.common.base.MoreObjects;

/**
 * 自动补全查询对象
 *
 * @author 付荣
 * @version 创建时间：2018年3月12日 上午9:49:17
 */
public class SuggestQueryBean implements Serializable{

	private static final long serialVersionUID = 9053596883855956799L;
	// 关键词
	private String keyword;
	//类型（自动补全类型：AUTO_COMPLETE_TYPE ）
	private String type;
	//行政区ID
	private Long districtId;
	//出发地行政ID
	private Long fromDistrictId;
	//渠道
	private String distributorId;
	//品类ID
	private String categoryId;
	//百度经度
	private Double baiduLongitude;
	//百度纬度
	private Double baiduLatitude;
	//数量，默认5
	private int topNum = 5;
	
	private boolean spellCheck = false;
	//是否只需要VST产品
	private boolean isOnlyVst;

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Long getDistrictId() {
		return districtId;
	}

	public void setDistrictId(Long districtId) {
		this.districtId = districtId;
	}

	public Long getFromDistrictId() {
		return fromDistrictId;
	}

	public void setFromDistrictId(Long fromDistrictId) {
		this.fromDistrictId = fromDistrictId;
	}

	public String getDistributorId() {
		return distributorId;
	}

	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public Double getBaiduLongitude() {
		return baiduLongitude;
	}

	public void setBaiduLongitude(Double baiduLongitude) {
		this.baiduLongitude = baiduLongitude;
	}

	public Double getBaiduLatitude() {
		return baiduLatitude;
	}

	public void setBaiduLatitude(Double baiduLatitude) {
		this.baiduLatitude = baiduLatitude;
	}

	public int getTopNum() {
		return topNum;
	}

	public void setTopNum(int topNum) {
		this.topNum = topNum;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public boolean isOnlyVst() {
		return isOnlyVst;
	}
	
	public void setOnlyVst(boolean isOnlyVst) {
		this.isOnlyVst = isOnlyVst;
	}

	@Override
	public String toString() {
		return MoreObjects.toStringHelper(this)
				.add("keyword", keyword)
				.add("type", type)
				.add("districtId", districtId)
				.add("fromDistrictId", fromDistrictId)
				.add("distributorId", distributorId)
				.add("categoryId", categoryId)
				.add("baiduLongitude", baiduLongitude)
				.add("baiduLatitude", baiduLatitude)
				.add("topNum", topNum)
				.add("isOnlyVst", isOnlyVst)
				.toString();
	}

	public boolean isSpellCheck() {
		return spellCheck;
	}

	public void setSpellCheck(boolean spellCheck) {
		this.spellCheck = spellCheck;
	}
}
